package cn.yuanyuan.guide.transformer.entity;

import java.util.List;

import cn.yuanyuan.guide.parser.entity.Node;

/**
 * @author wuyitao
 * @date 2022/3/27 10:12 PM
 */
public class Expression extends Node {
    private Callee callee;
    private List<Node> arguments;
    private Expression expression;

    public Expression(String type, Callee callee, List<Node> arguments) {
        this.setType(type);
        this.callee = callee;
        this.arguments = arguments;
    }

    public Expression(String type, Expression expression) {
        this.setType(type);
        this.expression = expression;
    }

    public Expression getExpression() {
        return expression;
    }

    public void setExpression(Expression expression) {
        this.expression = expression;
    }

    public Callee getCallee() {
        return callee;
    }

    public void setCallee(Callee callee) {
        this.callee = callee;
    }

    public List<Node> getArguments() {
        return arguments;
    }

    public void setArguments(List<Node> arguments) {
        this.arguments = arguments;
    }
}
